package com.jeff.tianti.cms.entity;

import com.jeff.tianti.common.entity.BaseEntity;
import com.jeff.tianti.common.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "cnaa_apply_for")
public class CnaaApplyFor extends BaseEntity {//cnaa申请表
    private static final long serialVersionUID = -2061768687538461532L;
    @Column(name = "uid")
    private String uid;//用户id
    @Column(name = "level")
    private String level;// 申请级别 0->1级;1->2级;2->3级
    @Column(name = "company_name")
    private String companyName;//企业名称
    @Column(name = "linkman")
    private String linkman;//联系人
    @Column(name = "phone")
    private String phone;//联系人电话
    @Column(name = "sort")
    private int sort;
    private String dateString;

    @Transient
    public String getDateString() {
        return DateUtils.dateToString(createDate, "yyyy-MM-dd");
    }

    public void setDateString(String dateString) {
        this.dateString = dateString;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }
}
